package com.example.demo.dao;

import com.example.demo.model.Book;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BookMapper {

  int deleteByPrimaryKey(Integer id);

  int insertSelective(Book record);

  Book selectByPrimaryKey(Integer id);

  int updateByPrimaryKeySelective(Book record);

  List<Book> getListByParams(@Param("name") String name, @Param("limit") Integer limit, @Param("offset") Integer offset);

  int countByParams(@Param("name") String name);

}